package cn.fuzongyao.learning.android.crime14;

import java.time.LocalDate;

public class Crime {
    private String id;
    private String title;
    private LocalDate date;
    private boolean solved;

    public Crime() {
    }

    public String getId() {
        return id;
    }

    public Crime setId(String id) {
        this.id = id;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public Crime setTitle(String title) {
        this.title = title;
        return this;
    }

    public LocalDate getDate() {
        return date;
    }

    public Crime setDate(LocalDate date) {
        this.date = date;
        return this;
    }

    public boolean isSolved() {
        return solved;
    }

    public Crime setSolved(boolean solved) {
        this.solved = solved;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Crime{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", date=").append(date);
        sb.append(", solved=").append(solved);
        sb.append('}');
        return sb.toString();
    }
}
